﻿Imports System.ComponentModel
Imports System.ComponentModel.DataAnnotations
Imports System.ComponentModel.DataAnnotations.Schema
Imports System.Globalization
Imports System.Data.Entity

Public Class Location
    <Key()> _
    <DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)> _
    Public Property ID As Integer

    Public Property CompanyID As Integer
    Public Property Name As String
    Public Property Active As Boolean
End Class

Public Class LocationDBContext
    Inherits DbContext
    Public Property Locations() As DbSet(Of Location)
End Class